package com.agrm.model.good.pojo;

import com.agrm.model.brand.pojo.Brand;
import com.agrm.model.category.pojo.Category;
import com.agrm.model.common.dtos.BaseModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Setter
@Getter
@TableName("good")
public class Good extends BaseModel {

    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;

    private String name;

    private Boolean isSeckill;

    private String alias; //商品别名

    private String summary;//商品摘要

    private Integer categoryId;//商品所属分类id

    private Integer brandId;//商品所属品牌id

    private BigDecimal markPrice;//建议零售价

    private BigDecimal price;//实际价格

    private Integer qty;//库存数量

    private String pic;//商品主图

    private String pic2;//商品次图

    private String detailPics;//商品详情图 多个链接逗号分割

    private String detail;//商品详情

    private Integer isTakeDown;//是否下架

    private Integer isHot;//是否热门

    private Integer isDel;//是否删除

    private String description;//商品备注


    @TableField(exist = false)
    private Category category;//商品分类

    @TableField(exist = false)
    private Brand brand;//商品品牌

}
